package com.zjitc.service.Impl;
import com.github.pagehelper.PageHelper;
import com.zjitc.dao.CountryDao;
import com.zjitc.po.Country;
import com.zjitc.service.CountryService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/26 14:18
 * @description:
 */
@Service
public class CountryServiceImpl implements CountryService{

  @Autowired
  private CountryDao countryDao;

  @Override
  public List<Country> findAllCountries() {
    return countryDao.findAllCountries();
  }
  @Override
  public List<Country> findCountryies(int start, int count) {
    PageHelper.startPage(start,count);
    return countryDao.findAllCountries();
  }
}
